package menu;

/**
 * @author: Alexander Martyushov
 */
public class MenuItem extends MenuComponent{


    String name;
    String description;
    boolean vegetarian;
    double price;

    public double getPrice() {
        return price;
    }

    public boolean isVegetarian() {
        return vegetarian;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }


    public MenuItem(String name, String description, boolean vegetarian,double price){
        this.name=name;
        this.description=description;
        this.vegetarian=vegetarian;
        this.price=price;
    }

    public void print(){
        System.out.print(" "+getName());
        if (isVegetarian()){
            System.out.print("(v)");
        }
        System.out.println(", " + getPrice());
        System.out.println("    -- " + getDescription());


    }

}
